package com.boguan.device.mapper;

import com.boguan.device.domain.DeviceParam;
import org.apache.ibatis.annotations.Param;

/**
 * 设备参数表 数据层
 *
 * @author chen
 */
public interface DeviceParamMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeviceParam record);

    int insertSelective(DeviceParam record);

    DeviceParam selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DeviceParam record);

    int updateByPrimaryKey(DeviceParam record);

    int deleteByDeviceIdAndParamType(@Param("deviceId") Long deviceId, @Param("paramType")Integer paramType);

    DeviceParam selectByDeviceAndParamId(@Param("deviceId")Long deviceId,@Param("paramId") Long paramId);

    int deleteByDeviceIdAndParamId(@Param("deviceId")Long deviceId,@Param("paramId")  Long paramId);

    int deleteByDeviceId(Long deviceId);

}